package com.coolingme.Case;


import com.coolingme.domain.Person;

/**
 * 测试IOC返回对象
 *
 * @author wangyue
 * @date 2019/3/16 16:59
 */
public class IOCTest {

    public static void main(String[] args) {
        IOC ioc = new IOC();
        // 通过IOC获取对象
        Person person = (Person) ioc.getInstance("com.dylan.domain.Person");
        System.out.println(person);
    }
}
